.preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11;
  width: 100%;
  height: 100%;
  background-color: #00000088;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;

  .close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #00000088;
    font-weight: bold;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .preview-content {
    width: 80%;
    height: 80%;

    img, video {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center;
    }
  }
}
